﻿
BEGIN TRANSACTION
SET QUOTED_IDENTIFIER ON
SET ARITHABORT ON
SET NUMERIC_ROUNDABORT OFF
SET CONCAT_NULL_YIELDS_NULL ON
SET ANSI_NULLS ON
SET ANSI_PADDING ON
SET ANSI_WARNINGS ON
COMMIT
BEGIN TRANSACTION
GO
CREATE TABLE dbo.tblLogException
	(
	LogId bigint NOT NULL IDENTITY (1, 1),
	InnerException nvarchar(255) NOT NULL,
	[Message] nvarchar(255) NOT NULL,
	[Source] nvarchar(255) NOT NULL,
	StackTrace nvarchar(255) NOT NULL,
	DataGeracaoRegistro datetime NOT NULL
	)  ON [PRIMARY]
GO
ALTER TABLE dbo.tblLogException ADD CONSTRAINT
	DF_Table_1_DataGeracaoRegistro DEFAULT getdate() FOR DataGeracaoRegistro
GO
ALTER TABLE dbo.tblLogException ADD CONSTRAINT
	PK_Table_1 PRIMARY KEY CLUSTERED 
	(
	LogId
	) WITH( STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]

GO
COMMIT